package com.caipu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caipu.entity.DishTag;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DishTagMapper extends BaseMapper<DishTag> {
    
    @Select("SELECT tag_id FROM dish_tag WHERE dish_id = #{dishId}")
    List<Long> getTagIdsByDishId(@Param("dishId") Long dishId);
}